package cn.wyl;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 通过注解@EnableEurekaClient标记服务作为Eureka客户端
 */
@SpringBootApplication
//不打这个标签也能实现功能，因为导入spring-cloud-starter-netflix-eureka-client 依赖后，默认就开启了EurekaClient
@EnableEurekaClient
public class UserServerApplication1020 {
    public static void main(String[] args) {
        SpringApplication.run(UserServerApplication1020.class);
    }
}
